<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: CPView: Class TCPView</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TCPView"></a><h1 class="cio">Class TCPView</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td><a class="section"  href="#%40Hierarchy">Hierarchy</a></td><td><a class="section"  href="#%40Fields">Fields</a></td><td><a class="section"  href="#%40Methods">Methods</a></td><td><a class="section"  href="#%40Properties">Properties</a></td></tr></table>
<a name="%40Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="CPView.html">CPView</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCPView = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
Describes a rectangular viewing region on a 2D coordinate system. This class provides routines for transforming coordinates to canvas units. If the canvas is a bitmap then these units are pixels, if the canvas is a vector graphic these units could be milimeter.</p>
<a name="%40Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCPView</li></ul><h2 class="overview">Overview</h2>
<a name="%40Fields"></a><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FScale">FScale</a></b>: <a   href="CPBase.TCPVector.html">TCPVector</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FTranslation">FTranslation</a></b>: <a   href="CPBase.TCPVector.html">TCPVector</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FYAxisScale">FYAxisScale</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FZoom">FZoom</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FCenter">FCenter</a></b>: <a   href="CPBase.html#TCPPoint">TCPPoint</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FPlotCanvas">FPlotCanvas</a></b>: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="CPView.TCPView.html#FViewRect">FViewRect</a></b>: <a   href="CPBase.TCPRect.html">TCPRect</a>;</code></td>
</tr>
</table>
<a name="%40Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a   href="CPView.TCPView.html#GetViewScale">GetViewScale</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#ViewUpdated">ViewUpdated</a></b>; overload; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#ViewUpdated">ViewUpdated</a></b>(Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; Center:<a   href="CPBase.TCPVector.html">TCPVector</a>; YAxisRatio: <a   href="CPBase.html#TCPFloat">TCPFloat</a>); overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#PlotCanvasChanged">PlotCanvasChanged</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#SetPlotCanvas">SetPlotCanvas</a></b>(const Value: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a   href="CPView.TCPView.html#GetCanvasTransform">GetCanvasTransform</a></b>: <a   href="CPBase.TCPBounds.html">TCPBounds</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#EnsureViewRange">EnsureViewRange</a></b>(var AZoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; var ACenter: <a   href="CPBase.html#TCPPoint">TCPPoint</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="CPView.TCPView.html#Create">Create</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a   href="CPView.TCPView.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#Assign">Assign</a></b>(View: <a   href="CPView.TCPView.html">TCPView</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>class function <b><a   href="CPView.TCPView.html#ScaleToZoom">ScaleToZoom</a></b>(Scale: <a   href="CPBase.html#TCPFloat">TCPFloat</a>): <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>class function <b><a   href="CPView.TCPView.html#ZoomToScale">ZoomToScale</a></b>(Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>): <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CPView.TCPView.html#ToCanvas">ToCanvas</a></b>(const Coords: <a   href="CPBase.html#TCPPoint">TCPPoint</a>): <a   href="CPBase.html#TCPPoint">TCPPoint</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CPView.TCPView.html#ToCoord">ToCoord</a></b>(const Point: <a   href="CPBase.html#TCPPoint">TCPPoint</a>): <a   href="CPBase.html#TCPPoint">TCPPoint</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CPView.TCPView.html#VectorToCoord">VectorToCoord</a></b>(const Vector: <a   href="CPBase.TCPVector.html">TCPVector</a>): <a   href="CPBase.TCPVector.html">TCPVector</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#SetViewBorders">SetViewBorders</a></b>(LeftBorder, RightBorder: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; TranslationY: <a   href="CPBase.html#TCPFloat">TCPFloat</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#ChangeView">ChangeView</a></b>(Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; YAxisScale: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; Center: <a   href="CPBase.html#TCPPoint">TCPPoint</a>); virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#ResetView">ResetView</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#ZoomTo">ZoomTo</a></b>(Coords: <a   href="CPBase.html#TCPPoint">TCPPoint</a>; Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>); virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#PanTo">PanTo</a></b>(Center: <a   href="CPBase.html#TCPPoint">TCPPoint</a>); virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#ZoomView">ZoomView</a></b>(ZoomDelta: <a   href="CPBase.html#TCPFloat">TCPFloat</a>); virtual;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#PanView">PanView</a></b>(PanFactor: <a   href="CPBase.TCPVector.html">TCPVector</a>); virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPView.TCPView.html#SetCanvasBounds">SetCanvasBounds</a></b>(Bounds: <a   href="CPBase.TCPBounds.html">TCPBounds</a>);</code></td>
</tr>
</table>
<a name="%40Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPView.TCPView.html#ViewScale">ViewScale</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read <a   href="CPView.TCPView.html#GetViewScale">GetViewScale</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPView.TCPView.html#ViewRect">ViewRect</a></b>: <a   href="CPBase.TCPRect.html">TCPRect</a> read <a   href="CPView.TCPView.html#FViewRect">FViewRect</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPView.TCPView.html#PlotCanvas">PlotCanvas</a></b>: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a> read <a   href="CPView.TCPView.html#FPlotCanvas">FPlotCanvas</a> write <a   href="CPView.TCPView.html#SetPlotCanvas">SetPlotCanvas</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPView.TCPView.html#Center">Center</a></b>: <a   href="CPBase.html#TCPPoint">TCPPoint</a> read <a   href="CPView.TCPView.html#FCenter">FCenter</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPView.TCPView.html#Zoom">Zoom</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read <a   href="CPView.TCPView.html#FZoom">FZoom</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPView.TCPView.html#YAxisScale">YAxisScale</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read <a   href="CPView.TCPView.html#FYAxisScale">FYAxisScale</a> write SetYAxisScale;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FScale"></a><code><b>FScale</b>: <a   href="CPBase.TCPVector.html">TCPVector</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Scalation of coordinate system. This describes the size of one coordinate unit in canvas units.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FTranslation"></a><code><b>FTranslation</b>: <a   href="CPBase.TCPVector.html">TCPVector</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Translation of coordinate system. This describes the translation of the coordinate system in canvas units.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FYAxisScale"></a><code><b>FYAxisScale</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Scale ratio of Y-axis compared to X-axis.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FZoom"></a><code><b>FZoom</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Scaling of the view expressed as binary logartihm. Increasing the zoom by 1 will scale up the coordinate system by 2.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FCenter"></a><code><b>FCenter</b>: <a   href="CPBase.html#TCPPoint">TCPPoint</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
View is centered on these coordinates.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FPlotCanvas"></a><code><b>FPlotCanvas</b>: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Canvas that is plotted on. Owned by this instance.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FViewRect"></a><code><b>FViewRect</b>: <a   href="CPBase.TCPRect.html">TCPRect</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Top left and bottom right coordinates of view</p>
</td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="GetViewScale"></a><code>function <b>GetViewScale</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns horizontal scale of view</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="ViewUpdated"></a><code>procedure <b>ViewUpdated</b>; overload; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Is called, after the view has been changed.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="ViewUpdated"></a><code>procedure <b>ViewUpdated</b>(Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; Center:<a   href="CPBase.TCPVector.html">TCPVector</a>; YAxisRatio: <a   href="CPBase.html#TCPFloat">TCPFloat</a>); overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Calculates the new view on the coordinate system and repaints it.   </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>Zoom</dt>
<dd>New zoom value to use</dd>
<dt>Center</dt>
<dd>New view center</dd>
<dt>YAxisRatio</dt>
<dd>New Y axis scale ratio</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="PlotCanvasChanged"></a><code>procedure <b>PlotCanvasChanged</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called, when plot canvas is changed</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="SetPlotCanvas"></a><code>procedure <b>SetPlotCanvas</b>(const Value: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Sets a new plotting canvas.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="GetCanvasTransform"></a><code>function <b>GetCanvasTransform</b>: <a   href="CPBase.TCPBounds.html">TCPBounds</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Calculates the transformation bounds of the canvas for converting coordinate units to canvas units. If the canvas requires mirroring of Y-coordinates, the height will be set to negative value and the vertical position will be aligned to the bottom.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="EnsureViewRange"></a><code>procedure <b>EnsureViewRange</b>(var AZoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; var ACenter: <a   href="CPBase.html#TCPPoint">TCPPoint</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Ensures that both zoom and center values will be in range to express a valid view.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Assign"></a><code>procedure <b>Assign</b>(View: <a   href="CPView.TCPView.html">TCPView</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Assigns the specified view</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ScaleToZoom"></a><code>class function <b>ScaleToZoom</b>(Scale: <a   href="CPBase.html#TCPFloat">TCPFloat</a>): <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Convert view scale to zoom factor.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ZoomToScale"></a><code>class function <b>ZoomToScale</b>(Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>): <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Convert zoom factor to view scale.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ToCanvas"></a><code>function <b>ToCanvas</b>(const Coords: <a   href="CPBase.html#TCPPoint">TCPPoint</a>): <a   href="CPBase.html#TCPPoint">TCPPoint</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Transforms coordinates to canvas units. This is the inverse operation of ToCoords().</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ToCoord"></a><code>function <b>ToCoord</b>(const Point: <a   href="CPBase.html#TCPPoint">TCPPoint</a>): <a   href="CPBase.html#TCPPoint">TCPPoint</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Transforms a point from coordinate units to canvas units. This is the inverse operation of ToCanvas().</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="VectorToCoord"></a><code>function <b>VectorToCoord</b>(const Vector: <a   href="CPBase.TCPVector.html">TCPVector</a>): <a   href="CPBase.TCPVector.html">TCPVector</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Transforms a vector from coordinate units to canvas units.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetViewBorders"></a><code>procedure <b>SetViewBorders</b>(LeftBorder, RightBorder: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; TranslationY: <a   href="CPBase.html#TCPFloat">TCPFloat</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Adjust view so the left and right interval borders (defined in coordinate units) will mark the left and right screen border. YCoord value is used for the vertical alignment of the view.   </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>LeftBorder</dt>
<dd>X-coordinate of left border</dd>
<dt>RightBorder</dt>
<dd>Y-coordinate of right border</dd>
<dt>YCoord</dt>
<dd>Vertical translation of the view</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ChangeView"></a><code>procedure <b>ChangeView</b>(Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; YAxisScale: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; Center: <a   href="CPBase.html#TCPPoint">TCPPoint</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Sets view parameters directly.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ResetView"></a><code>procedure <b>ResetView</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Reset view to the default view.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ZoomTo"></a><code>procedure <b>ZoomTo</b>(Coords: <a   href="CPBase.html#TCPPoint">TCPPoint</a>; Zoom: <a   href="CPBase.html#TCPFloat">TCPFloat</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Changes scalation, so the specified coordinates will not change their screen coordinates</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PanTo"></a><code>procedure <b>PanTo</b>(Center: <a   href="CPBase.html#TCPPoint">TCPPoint</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Center view on a point of the cooridnate system.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ZoomView"></a><code>procedure <b>ZoomView</b>(ZoomDelta: <a   href="CPBase.html#TCPFloat">TCPFloat</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Changes zoom by ZoomDelta * FZoomStep.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PanView"></a><code>procedure <b>PanView</b>(PanFactor: <a   href="CPBase.TCPVector.html">TCPVector</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Moves the view center by PanDelta * FPanStep.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetCanvasBounds"></a><code>procedure <b>SetCanvasBounds</b>(Bounds: <a   href="CPBase.TCPBounds.html">TCPBounds</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Updates canvas bounds </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>Bounds</dt>
<dd>Canvas bounds in canvas coordinates</dd>
</dl>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ViewScale"></a><code>property <b>ViewScale</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read <a   href="CPView.TCPView.html#GetViewScale">GetViewScale</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Horizontal and vertical scale of view</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ViewRect"></a><code>property <b>ViewRect</b>: <a   href="CPBase.TCPRect.html">TCPRect</a> read <a   href="CPView.TCPView.html#FViewRect">FViewRect</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Corner coordinates of the view region</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PlotCanvas"></a><code>property <b>PlotCanvas</b>: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a> read <a   href="CPView.TCPView.html#FPlotCanvas">FPlotCanvas</a> write <a   href="CPView.TCPView.html#SetPlotCanvas">SetPlotCanvas</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Canvas which is plotted on</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Center"></a><code>property <b>Center</b>: <a   href="CPBase.html#TCPPoint">TCPPoint</a> read <a   href="CPView.TCPView.html#FCenter">FCenter</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Center of view region</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Zoom"></a><code>property <b>Zoom</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read <a   href="CPView.TCPView.html#FZoom">FZoom</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Zoom of view region</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="YAxisScale"></a><code>property <b>YAxisScale</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read <a   href="CPView.TCPView.html#FYAxisScale">FYAxisScale</a> write SetYAxisScale;</code></td>
</tr>
<tr><td colspan="2">
<p>
Ratio of Y-axis to X-axis</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> on 2009-07-25 15:33:03</em>
</span>
</body></html>
